#pragma once

#include <string>
#include <vector>

class StringTool
{
public:
	StringTool(void);
	~StringTool(void);

	static int ELFhash( const std::string& key );
	static std::string trim(const std::string& str);
	static std::string replace(const std::string& str, const std::string& src, const std::string& dest);
	static int split(const std::string& str, std::vector<std::string>& ret, const std::string sep = "-");
};
